// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import VueLazyLoad from 'vue-lazyload'
import infiniteScroll from 'vue-infinite-scroll'
import {currency} from './util/currency'
import store from './store'

Vue.use(VueLazyLoad, {
  preLoad: 1.3,
  loading: 'static/loading/loading-spinner.svg',
  attempt: 1,
  listenEvents: [ 'scroll' ]
})
Vue.use(infiniteScroll)
Vue.config.productionTip = false
Vue.filter('currency', currency)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  store: store,
  router: router,
  template: '<App/>',
  components: { App }
})
